#!/usr/local/bin/python
import sys

def _Usage():
    print("Usage: %s seek|flee|arrive|wander|pursuit|evade|offset|flock|obstacle" %(sys.argv[0]))

def main():
    try:
        arg = sys.argv[1]
    except IndexError:
        _Usage()
        return 1
    else:
        if arg == "seek":
            from steer.seekdemo import SeekDemo as Game
        elif arg == "flee":
            from steer.fleedemo import FleeDemo as Game
        elif arg == "arrive":
            from steer.arrivedemo import ArriveDemo as Game
        elif arg == "wander":
            from steer.wanderdemo import WanderDemo as Game
        elif arg == "pursuit":
            from steer.pursuitdemo import PursuitDemo as Game
        elif arg == "evade":
            from steer.evadedemo import EvadeDemo as Game
        elif arg == "offset":
            from steer.offsetdemo import OffsetDemo as Game
        elif arg == "flock":
            from steer.flockdemo import FlockDemo as Game
        elif arg == "obstacle":
            from steer.obstacledemo import ObstacleDemo as Game
        elif arg == "hide":
            from steer.hidedemo import HideDemo as Game
        else:
            _Usage()
            return 1

        #Create and run the demo game
        game = Game()
        game.setup()
        game.run()
        game.destroy()

if __name__ == "__main__":
    sys.exit( main() )